package com.framework.plm.sch.job;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.framework.plm.bas.param.GeneralParam;
import com.framework.plm.bas.util.UtilDatetime;
import com.framework.plm.bas.util.UtilWeb;
import com.framework.plm.sch.vo.HpSchTaskVO;

public class BackStatisticJob extends AbsBatchJob {
	private static final Log log = LogFactory.getLog(BackStatisticJob.class);

	@Override
	public void doPlanWork(HpSchTaskVO schTaskVO, GeneralParam param) {
		log.info("平台:"+UtilWeb.getSysFlag()+"-开始执行任务:["+schTaskVO.getTaskName()+"]");
		Map<String, String> map = new HashMap<String, String>();
		map.put("I_DATE", UtilDatetime.getDateString());
		getPlmBasBS().runProcedure("HP_PLAN_PRODUCT_PROC", map);
		log.info("平台:"+UtilWeb.getSysFlag()+"-任务完成:["+schTaskVO.getTaskName()+"]");
	}

}
